package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Craft;
import com.example.demo.common.entity.Defect;
import com.example.demo.common.mapper.CraftMapper;
import com.example.demo.common.service.CraftService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CraftServiceImpl implements CraftService {
    @Resource
    CraftMapper craftMapper;
    @Override
    public void saveCraft(Craft craft){
        craftMapper.insert(craft);
    }
    @Override
    public void updateCraft(Craft craft){
        craftMapper.updateById(craft);
    }
    @Override
    public void deleteById(Long id){
        craftMapper.deleteById(id);
    }
}
